#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
int main()
{
  close(1);
  //int num = 0;
  //scanf("%d",&num);
  //printf("hello world\n");
  int fd = open("log.txt",O_WRONLY|O_CREAT|O_APPEND,0666);
  //int fda = open("log.txt",O_WRONLY|O_CREAT|O_APPEND,0666);
  //int fdb = open("log.txt",O_WRONLY|O_CREAT|O_APPEND,0666);
  const char* tmp = "hello bit\n";
  //write(fd,tmp,strlen(tmp));
  printf("fd:%d\n",fd);
  printf("hello world\n");
  printf("hello world\n");
  printf("hello world\n");
  return 0;
}
